<html>

<head>
  <script type="text/javascript">
    var myarray = new Array(5);
    var mynum = myarray.length
    document.write("数组长度:" + mynum);
  </script>
</head>

<body>
</body>

</html>